package com.design.pattern.factory;

import org.springframework.stereotype.Component;

/**
 * @author 王霄
 * @date 2022/3/18 22:07
 */
@Component
public class Benz implements Car {
    @Override
    public CarType getCarType() {
        return CarType.BENZ;
    }

    @Override
    public void create() {
        System.out.println("生产奔驰车");
    }
}
